<!DOCTYPE html> 
<html> 
    <head> 
        <meta name="description" content="Convert cyworld's swf photo to image files."> 
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
        <title>url2datauri</title>
        <style type="text/css">
            #result {width:640px;padding:20px;background-color:#eee; border:1px solid #666; word-wrap: break-word;margin:20px;display:none}
        </style>
    </head> 
    <body>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> 
        <script type="text/javascript"> 
            $(function() {
                $("#form").submit(function() {
                    var form = this;
                    var url = $("#url").val();
                    convert(form);
                    return false;
                });
                var convert = function(form) {
                    $("#info").text("Converting...");
                    $.ajax({
                      url: form.action + "?callback=?",
                      dataType: 'jsonp',
                      data: $(form).serializeArray(),
                      success: function(data) {
                        $("#result").text(data.uri).fadeIn("slow");
                        $("#info").text("Success!");
                      },
                      error: function() {
                          $("#info").text("Sorry. Error :(");
                      }
                    });
                }
            });
        </script> 
        <h1>url2datauri</h1> 
        <div id="info"><label for="url">Please enter url to convert</label></div> 
        <form action="/" method="post" id="form"> 
            <input type="url" name="url" id="url" size="64" required> 
            <input type="submit"> 
        </form> 
        <div id="result"></div> 
        <img src="http://code.google.com/appengine/images/appengine-noborder-120x30.gif" alt="Powered by Google App Engine" /> 
        <script type="text/javascript"><!--
        google_ad_client = "ca-pub-3191390748008227";
        google_ad_slot = "0094634488";
        google_ad_width = 200;
        google_ad_height = 200;
        //-->
        </script> 
        <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
        </script>       
    </body> 
</html>    